import Cookies from "js-cookie";

const TokenKey = 'vue_labweb_template_token'

// 从存储当中获取token
export function getToken(){
  return Cookies.get(TokenKey)
}

// 修改token
export function setToken(token){
  return Cookies.set(TokenKey,token)
}
// 删除token
export function removeToken(){
return Cookies.remove(TokenKey)
}


// 从存储中获取userInfo
export function getUserInfo(){
  return Cookies.get('userInfo')
}